package com.wushi.lenovo.asia5b.app_di.goods.presenter;

import com.mvp.base.BasePresenter;
import com.wushi.lenovo.asia5b.app_di.goods.mvpview.ThirdMallActivityView;
import com.wushi.lenovo.asia5b.app_http.ApiService;

import javax.inject.Inject;


/**
 * Created by zhangyuncai on 2019/3/16.
 */
public class ThirdMallActivityPresenter extends BasePresenter<ThirdMallActivityView> {

    ApiService apiService;

    @Inject
    public ThirdMallActivityPresenter(ApiService apiService) {
        this.apiService = apiService;
    }

    public void getShopFromglobeListing() {
        baseSubscribe(apiService.getShopFromglobeListing(),
                resultModel -> {
                    if (resultModel.isSuccess() && resultModel.getData() != null) {
                        getView().getShopFromglobeListingResult(resultModel.getData());
                    }
                });
    }
}